package server

import (
	"context"
	corev1 "gluenet/internal/agent/api/core/v1"
)

type Server interface {
	ListenAndServe() error
	Close() error
	Shutdown(ctx context.Context) error
}

type ServerFactory func(cfg *corev1.Agent) (Server, error)
